<script type="text/javascript" src="./tpl/js/share_list.js"></script>
<!--{if empty($share_list)}-->
<div class="empty" id="SHARE_DETAIL_LiST_EMPTY">
	<img alt="" class="fl" src="./tpl/images/fanwe4.png">
	<!--{if $home_uid == $_FANWE['uid']}-->
	<span>你还没有发过消息呢~</span>
	<br>在上边的输入框里写一句想说的话，把生活分享给大家吧。
	<!--{else}-->
	<span>呼~~这里还是空的~~</span>
	<!--{/if}-->
</div>
<ul class="t_l" id="SHARE_DETAIL_LiST">
</ul>
<!--{else}-->
<ul class="t_l" id="SHARE_DETAIL_LiST">
	<!--{loop $share_list $share_item}-->
	<?php
		$relay_share = array();
		$parent_share = array();
		$self_share = $share_item;
		if($share_item['base_id'] > 0 && $share_item['relay_share'])
			$relay_share = $share_item['relay_share'];
	?>
	<li class="t_f" shareID="{$share_item['share_id']}" id="SHARE_LIST_{$share_item['share_id']}">
		<div class="t_tag"> <a class="t" href="{$share_item['url']}" target="_blank">{$share_item['time']}</a> </div>
		<div class="hd">
			<!--{getuser $share_item['uid'] 0 'm,48' ',avt icard r5 lazyload'}-->
			<div class="addfo">
				<!--{getfollow $share_item['uid'] inc/getfollow/share_list}-->
			</div>
		</div>
		<div class="tk">
			<div class="inf">
				<!--{getuser $share_item['uid'] 1 '' 'icard n gc'}-->
				<span>
					<?php $share_detail = &$share_item; ?>
					<!--{subtemplate inc/share/rel_type}-->
					<!--{if $share_item['is_rec_best'] == 1}-->
					<img style="vertical-align:-3px; _vertical-align:-2px;" src="./tpl/images/topic_tj.png" />
					<!--{/if}-->
				</span>
			</div>
			<p class="sms">{cutstr $share_item['content'] 200}</p>
			<!--{if !empty($share_item['tags']['user']) || $share_item['is_eidt_tag']}-->
			<?php
				$is_eidt_tag = $share_item['is_eidt_tag'];
				$share_tags_share_id = $share_item['share_id'];
				$share_tags = $share_item['tags']['user'];
			?>
			<!--{subtemplate inc/share/tags}-->
			<!--{/if}-->
			<!--{if !empty($share_item['imgs'])}-->
			<div class="pic">
				<!--{loop $share_item['imgs'] $share_item_img}-->
				<div class="r3 fl">
				<!--{if $share_item_img['type'] == 'g'}-->
				<img alt="{$share_item_img['alt']}" original="{getimg $share_item_img['img'] 160 160}" src="./tpl/images/lazyload.gif" class="fl lazyload" scaleType="4" scaleWidth="160" scaleHeight="160" updateParentSize="1"><img class="tag" src="./tpl/images/goods_tag.png">
				<!--{else}-->
				<img class="fl lazyload" original="{getimg $share_item_img['img'] 160 160}" src="./tpl/images/lazyload.gif" scaleType="4" scaleWidth="160" scaleHeight="160" updateParentSize="1" alt="{$share_item_img['alt']}">
				<!--{/if}-->
				</div>
				<!--{/loop}-->
			</div>
			<ul class="pic_b">
				<!--{loop $share_item['imgs'] $share_item_img}-->
				<li style="width: 468px; display: list-item; display:none;" class="pic_b_f r5">
					<!--{if $share_item_img['type'] == 'g'}-->
					<div class="pic_b_hd">
						<a class="mg_slink ofh" ref="nofollow" target="_blank" href="{$share_item_img['to_url']}">{$share_item_img['name']}</a>
						<a class="buy_it mg_slink" target="_blank" href="{$share_item_img['to_url']}"><span class="g_p"><span>{$share_item_img['price_format']}</span></span><i></i></a>			
					</div>
					<div class="pic_b_bd">
						<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($share_item_img['id'],'goods');"></a>
						<img class="lazyload"  original="{getimg $share_item_img['img'] 468 468}" src="./tpl/images/lazyload.gif" scaleType="1" scaleWidth="468" scaleHeight="468" alt="{$share_item_img['alt']}">
					</div>
					<div class="show_big">
						<img class="big_book" style="right:37px" src="./tpl/images/book_13x13.png">
						<a class="big_detail" ref="nofollow" style="right:10px" target="_blank" href="{$share_item_img['url']}">详情</a>
					</div>
					<!--{else}-->
					<div class="pic_b_bd">
						<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($share_item_img['id'],'photo');"></a>
						<img class="lazyload" original="{getimg $share_item_img['img'] 468 468}" src="./tpl/images/lazyload.gif" scaleType="1" scaleWidth="468" scaleHeight="468" alt="{$share_item_img['alt']}">
					</div>	
					<div class="show_big">
						<img class="big_book" src="./tpl/images/book_13x13.png">
						<a class="big_detail" ref="nofollow" target="_blank" href="{$share_item_img['url']}">详情</a>
						<img class="big_cur" src="./tpl/images/big_13x13.png">
						<a class="bigimg" ref="nofollow" target="_blank" href="{$share_item_img['img']}">查看原图</a>
					</div>			  
					<!--{/if}-->
				</li>
				<!--{/loop}-->
			</ul>
			<!--{/if}-->
			<!--{if !empty($relay_share)}-->
			<div class="q r5">
				<img src="./tpl/images/quote_arrow.png" class="q_a">
				<p class="sms">
					<!--{getuser $relay_share['uid'] 0 '' 'icard n'}-->：{cutstr $relay_share['content'] 200} <a href="{$relay_share['url']}" target="_blank">原文转发({$relay_share['relay_count']})</a>  <a href="{$relay_share['url']}" target="_blank">原文评论({$relay_share['comment_count']})</a>
				</p>
				<!--{if !empty($relay_share['imgs'])}-->
				<div class="pic" style="display: block;">
					<!--{loop $relay_share['imgs'] $relay_share_img}-->
					<div class="r3">
						<img alt="{$relay_share_img['alt']}" class="fl lazyload" original="{getimg $relay_share_img['img'] 100 100}" src="./tpl/images/lazyload.gif" scaleType="3" scaleWidth="100" scaleHeight="100" />
						<!--{if $relay_share_img['type'] == 'g'}-->
						<img class="tag" src="./tpl/images/goods_tag.png" />
						<!--{/if}-->
					</div>
					<!--{/loop}-->
					<br class="clear">                       
				</div>
				<ul class="pic_b">
					<!--{loop $relay_share['imgs'] $relay_share_img}-->
					<!--{if $relay_share_img['type'] == 'g'}-->
					<li class="pic_b_f r5" style="display: none;"> 
						<div class="pic_b_hd">
							<a class="mg_slink ofh" ref="nofollow" target="_blank" href="{$relay_share_img['to_url']}">{$relay_share_img['name']}</a>
							<a class="buy_it mg_slink" target="_blank" href="{$relay_share_img['to_url']}"><span class="g_p"><span>{$relay_share_img['price_format']}</span></span><i></i></a>	
						</div>                
						<div class="pic_b_bd">
							<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($relay_share_img['id'],'goods');"></a>
							<img class="lazyload" alt="{$relay_share_img['alt']}" original="{getimg $relay_share_img['img'] 468 468}" src="./tpl/images/lazyload.gif" scaleType="1" scaleWidth="468" scaleHeight="468">
						</div>
						<div class="show_big">
							<img class="big_book" style="right:37px" src="./tpl/images/book_13x13.png">
							<a class="big_detail" ref="nofollow" style="right:10px" target="_blank" href="{$relay_share_img['url']}">详情</a>
						</div>
					</li>
					<!--{else}-->
					<li class="pic_b_f r5" style="display: none;">
						<div class="pic_b_bd">
							<a class="add_to_album_btn" href="javascript:;" style="display: none;" onclick="$.Show_Rel_Album($relay_share_img['id'],'photo');"></a>
							<img class="lazyload" original="{getimg $relay_share_img['img'] 468 468}" src="./tpl/images/lazyload.gif" alt="{$relay_share_img['alt']}" scaleType="1" scaleWidth="468" scaleHeight="468">
						</div>	
						<div class="show_big">
							<img class="big_book" src="./tpl/images/book_13x13.png">
							<a class="big_detail" ref="nofollow" target="_blank" href="{$relay_share_img['url']}">详情</a>
							<img class="big_cur" src="./tpl/images/big_13x13.png">
							<a class="bigimg" ref="nofollow" target="_blank" href="{$relay_share_img['img']}">查看原图</a>
						</div>
					</li>
					<!--{/if}-->
					<!--{/loop}-->
				</ul>
				<!--{/if}-->
			</div>
			<!--{/if}-->
			<div class="tl">
				<!--{if $share_item['share_data'] != 'default'}-->
				<a w="f" href="javascript:;" class="add_fav fav" onclick="$.Fav_Share({$share_item['share_id']},this,32,'#SHARE_LIST_{$share_item['share_id']}');"></a>
				<div class="favDiv">
					<a href="{$share_item['url']}" target="_blank" class="SHARE_FAV_COUNT favCount">{$share_item['collect_count']}</a><i></i>
				</div>
				<!--{/if}-->
				<!--{if $self_share['authoritys'] > 0}-->
				<a w="f" href="javascript:;" class="mg SHARE_MANAGE">管理</a>
				<!--{/if}-->
				<a w="f" href="javascript:;" class="fw ed" onclick="$.Relay_Share($share_item['share_id']);">转发({$share_item['relay_count']})</a>
				<a w="f" href="javascript:;" class="cmt ed" shareID="{$share_item['share_id']}" onclick="$.Get_Share_Comment_List(this);">评论({$share_item['comment_count']})</a>
			</div>
			<ul class="SHARE_FAV_LIST u_like">
				<!--{loop $share_item['collects'] $collect_uid}-->
				<li><!--{getuser $collect_uid 0 'm' ',icard r3'}--></li>
				<!--{/loop}-->
			</ul>
			<ul class="t_m_l_h SHARE_MANAGE_LIST">
				<!--{if $self_share['authoritys'] > 0}-->
				<li><a class="del" onclick="$.Tweet_Delete($self_share['share_id'])" href="javascript:void(0);">删除</a></li>
				<!--{if $self_share['authoritys'] > 1}-->
				<li><a class="del" onclick="$.Tweet_Delete($self_share['share_id'],1)" href="javascript:void(0);">剔除</a></li>
				<!--{/if}-->
				<!--{/if}-->
			</ul>
		</div>
	</li>
	<!--{/loop}-->
</ul>
<div class="pagination mt20"> 				
	<!--{subtemplate inc/pages}--> 
</div>
<script type="text/javascript">
function ShareListUpdateUserFollow(obj,result)
{
	if(result.status == 1)
	{
		$(obj).before('<img src="./tpl/images/add_fo_ok.png" class="fo_ok">');
		$(obj).remove();
	}
}
</script>
<!--{/if}-->